package ru.nlezhnev.utils;

public class TypeUtils {
	static public int getInteger(Object id) {
		if (id instanceof Integer) {
			return ((Integer)id).intValue();
		} else if (id instanceof Double) {
			return ((Double)id).intValue();
		}
		return 0;
	}
}
